//
//  JXCalendarView.h
//  TestCollectionView
//
//  Created by Lemon on 2019/4/20.
//  Copyright © 2019 sunshinfight@163.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JXCalendarModel.h"

NS_ASSUME_NONNULL_BEGIN
@protocol JXCalendarViewDelegate <NSObject>
@optional
- (void)jxCalendarViewDidSelectedDates: (NSArray<JXCalendarModel* >*)dates;
@end

@interface JXCalendarView : UIView
@property (nonatomic, strong) UICollectionView *gridView;

@property (nonatomic) UIEdgeInsets sectionInsets;
@property (nonatomic) UIEdgeInsets monthHeaderSectionInsets;
@property (nonatomic) UIEdgeInsets yearHeaderSectionInsets;
@property (nonatomic) CGFloat minimumLineSpacing;
@property (nonatomic) CGFloat minimumInteritemSpacing;
@property (nonatomic) NSInteger startYear;
@property (nonatomic) NSInteger endYear;

@property (nonatomic, weak) id<JXCalendarViewDelegate> delegate;

- (void)scrollToTodayWithScrollPosition: (UICollectionViewScrollPosition)position animated:(BOOL)animated;

- (void)deSelectedAllDatesAnimated: (BOOL)animated;
@end

NS_ASSUME_NONNULL_END
